			<div class="tab-pane " id="five_koi">
				<!--	定制抽奖设置-->
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">领泽抽奖</div>
					<div class="panel-body" style="">
						<!--抽奖总开关-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label" ><span style="color: red;">*</span>抽奖总开关</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="koi_lottery_main" value="0" {if $config['koi_lottery_main']!=1} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="koi_lottery_main" value="1" {if $config['koi_lottery_main']==1} checked="checked"{/if} type="radio"> 开启
								</label>

							</div>
						</div>
						<!--						五锦抽奖活动时间-->
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color: red;">*</span>抽奖活动起止时间</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_daterange('koi_time_range', array('start'=>date('Y-m-d H:i:s',$config['koi_time_range_begintime']),'end'=>date('Y-m-d H:i:s',$config['koi_time_range_endtime'])), true);}
								<span class="help-block">五锦抽奖活动的起止时间，时间段结束后五锦的组件将会隐藏</span>
							</div>
						</div>

						<!--			是否填写报名信息-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">是否填写报名信息</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="koi_register" value="0" {if $config['koi_register']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="koi_register" value="1" {if $config['koi_register']==1} checked="checked"{/if} type="radio"> 开启
								</label>

							</div>
						</div>
						<!--			幸运星提示语-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">幸运星提示语</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_lucky_star"  value="{php echo empty($config['koi_lucky_star'])?'天天赚不停':$config['koi_lucky_star'];}">
								<span class="help-block">如：天天赚不停</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>幸运星收集手机号</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="koi_lucky_get_mobile" value="0" {if $config['koi_lucky_get_mobile']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="koi_lucky_get_mobile" value="1" {if $config['koi_lucky_get_mobile']==1} checked="checked"{/if} type="radio"> 开启
								</label>

							</div>
						</div>
						<!--			兑换奖品提示语-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">兑换奖品提示语-标题</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_convert_tips"  value="{php echo empty($config['koi_convert_tips'])?'请添加下方客服微信兑换礼品':$config['koi_convert_tips'];}">
								<span class="help-block">如：请添加下方客服微信兑换礼品</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">兑换奖品提示语-内容1</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_convert_content1"  value="{php echo empty($config['koi_convert_content1'])?'1分钟内添加微信':$config['koi_convert_content1'];}">
								<span class="help-block">如：1分钟内添加微信</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">兑换奖品提示语-内容2</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_convert_content2"  value="{php echo empty($config['koi_convert_content2'])?'可额外获得价值':$config['koi_convert_content2'];}">
								<span class="help-block">如：可额外获得价值</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">兑换奖品提示语-内容1</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_convert_content3"  value="{php echo empty($config['koi_convert_content3'])?'699元宝宝照套系':$config['koi_convert_content3'];}">
								<span class="help-block">如：699元宝宝照套系</span>
							</div>
						</div>
<!--						中奖底部弹窗提示-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">中奖弹窗底部提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_btm_tips"  value="{php echo empty($config['koi_btm_tips'])?'每个奖项只能兑换一次，且需完成相应任务':$config['koi_btm_tips'];}">
								<span class="help-block">如：每个奖项只能兑换一次，且需完成相应任务</span>
							</div>
						</div>
						<!--			未中奖提示语-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">未中奖提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_lose_tips"  value="{php echo empty($config['koi_lose_tips'])?'很遗憾，您未中奖':$config['koi_lose_tips'];}">
								<span class="help-block">如：邀请好友参与活动，可再获得1次抽奖机会，默认：很遗憾，您未中奖</span>
							</div>
						</div>



<!--						五锦抽奖活动结束后我的奖品浮标-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">我的奖品浮标</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('koi_my_prize_img',$config['koi_my_prize_img']);}
								<span class="help-block">五锦时间段结束后的浮标</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">客服浮标</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('koi_kf_img',$config['koi_kf_img']);}
								<span class="help-block">客服浮标</span>
							</div>
						</div>


						<!--						首图-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">首图</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('koi_top_img',$config['koi_top_img']);}
								<span class="help-block">活动内容上方显示</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定时领取浮标</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('koi_timeset_icon',$config['koi_timeset_icon']);}
								<span class="help-block">默认为：http://img2020.yixuansoft.cn/images/2/2021/05/J7eFxrgJXDQ7zFb52j32Xr7Fqr7r7g.png</span>
							</div>
						</div>

						<!--			幸运星提示语-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">测试体验用户</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="koi_test_user"  value="{$config['koi_test_user']}">
								<span class="help-block">适用于活动进行中，新增抽奖进行内测；通过粉丝查UID填定，每个用户用逗号分隔，如：8302,8234</span>
							</div>
						</div>
					</div>
				</div>
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">抽奖规则</div>
					<div class="panel-body" style="">
<!--						抽奖机会的算法-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>抽奖算法</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="koi_five_noun" value="0" {if $config['koi_five_noun']==0} checked="checked"{/if} type="radio"> 中奖奖品唯一
								</label>
								<label class="radio-inline">
									<input name="koi_five_noun" value="1" {if $config['koi_five_noun']==1} checked="checked"{/if} type="radio"> 不限制
								</label>

							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>抽奖机会上限</label>
							<div class="col-sm-3 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="koi_limit"  value="{$config['koi_limit']}">
									<span class="input-group-addon">次</span>
								</div>
								<span class="help-block">抽奖机会上限为用户最大抽奖次数</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>未报名可抽</label>
							<div class="col-sm-3 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="koi_nobaoming"  value="{$config['koi_nobaoming']}">
									<span class="input-group-addon">次</span>
								</div>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定时领取</label>
							<div class="col-sm-3 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="koi_timeset"  value="{$config['koi_timeset']}">
									<span class="input-group-addon">个小时，领取1次抽奖机会</span>
								</div>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>好友到访</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="koi_view"  value="{$config['koi_view']}">
									<span class="input-group-addon">个好友到访，增加1次抽奖机会</span>

									<span class="input-group-addon">好友类别</span>
									<select class="form-control" name="koi_viewtype">
										<!--							<option value="0" {if $config['koi_viewtype'] == 0 }selected="selected"{/if}>不限制</option>-->
										<option value="1" {if $config['koi_viewtype'] == 1 }selected="selected"{/if}>仅限从未打过链接的新用户</option>
									</select>
								</div>
							</div>
						</div>

						<!--						活动规则-->
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color: red;">*</span>活动规则：</label>
							<div class="col-sm-9 col-xs-12">
								<table class='table'>
									<thead>
									<tr>
										<th style="width: 70px;">序号</th>
										<th>活动规则内容</th>
										<th style="width: 50px;">操作</th>
									</tr>
									</thead>
									<tbody id="koi_rule_items">
									{loop $config['koi_rules'] $rule_item}
									<tr >
										<td><input name="rule_sort[]" type="text"
												   class="form-control span3" value="{$rule_item['rule_sort']}"
										/></td>

										<td><input name="rule_content[]" type="text"
												   class="form-control span3" value="{$rule_item['rule_content']}"
										/></td>
										<td>
											<input  name="koi_rule_id[]" type="hidden" value="{$koi_rule_id['id']}" />
											<a href='javascript:;' onclick='removeRuleItem(this)'><i
													class='glyphicon glyphicon-remove'></i> 删除</a></td>
									</tr>
									{/loop}
									</tbody>
								</table>
								<a href="javascript:;" onclick="addThemeRule();"><i class="glyphicon glyphicon-plus" title="添加规则"></i>添加规则</a>
							</div>
						</div>
					</div>
				</div>

				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">五锦拼霸王</div>
					<div class="panel-body" style="">
						<!--						五锦拼霸王开关-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">五锦拼霸王开关</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="koi_five_king" value="0" {if $config['koi_five_king']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="koi_five_king" value="1" {if $config['koi_five_king']==1} checked="checked"{/if} type="radio"> 开启
								</label>

							</div>
						</div>
						<!--						霸王锦鲤内容-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">霸王锦鲤介绍</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_ueditor('koi_content', $config['koi_content']);}
								<span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用,{/if}活动的正文,可放文字/图片/视频</span>
							</div>
						</div>
					</div>
				</div>
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">五连抽与跳转拼团页</div>
					<div class="panel-body" style="">





						<!--			五连抽开关-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">五连抽开关</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="koi_five_lottery" value="0" {if $config['koi_five_lottery']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="koi_five_lottery" value="1" {if $config['koi_five_lottery']==1} checked="checked"{/if} type="radio"> 开启
								</label>

							</div>
						</div>

						<!--						五连抽有效时间-->
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">五连抽起止时间</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_daterange('koi_five_time', array('start'=>date('Y-m-d H:i:s',$config['koi_five_begintime']),'end'=>date('Y-m-d H:i:s',$config['koi_five_endtime'])), true);}
								<span class="help-block">五连抽的起止时间，时间段内活动有效</span>
							</div>
						</div>
						<!--						五连抽提示语-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">五连抽提示语</label>
							<div class="col-sm-8 col-xs-12">
								<textarea name="koi_five_lt_tips" class="form-control" >{$config['koi_five_lt_tips']}</textarea>
							</div>
						</div>


						<!--			绑定的游戏的活动list-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">绑定对应的拼团的活动</label>
							<div class="col-sm-10 col-xs-12">
								<select class="form-control" name="lz_game_themeid">
									<option value="0" >不跳转</option>
									{if $lz_game_theme_list['type_theme_total']>0 }
									{loop $lz_game_theme_list['type_theme_list'] $row}
									<option value="{$row['id']}" {if $config['lz_game_themeid'] == $row['id'] }selected="selected"{/if}>跳转到：{$row['id']} - {php echo mb_substr($row['title'],0,25,'utf-8');}</option>
									{/loop}
									{/if}
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">五锦拼霸王首页【进入拼团】浮标</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('koi_to_pintuan_icon',$config['koi_to_pintuan_icon']);}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">五锦拼霸王首页【更多惊喜】浮标</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('koi_more_amazing_icon',$config['koi_more_amazing_icon']);}
								<span class="help-block">默认为：https://css2020.yixuan.net/2020css/five_koi/koi_to_tuan01.png</span>
								<span class="help-block">备选为：https://css2020.yixuan.net/2020css/five_koi/koi_to_tuan02.png</span>
							</div>
						</div>

						<!--						更多惊喜显示方式-->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">更多惊喜显示方式</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="koi_five_more_amazing_type" value="0" {if $config['koi_five_more_amazing_type']==0} checked="checked"{/if} type="radio"> 未支付—显示
								</label>
								<label class="radio-inline">
									<input name="koi_five_more_amazing_type" value="1" {if $config['koi_five_more_amazing_type']==1} checked="checked"{/if} type="radio"> 未支付—不显示
								</label>

							</div>
						</div>
					</div>
				</div>
			</div>

			<script>
				function addThemeRule(){
					var html = "<tr>";
					html += '<td><input name="rule_sort[]" type="text" class="form-control span3" value="" /></td>';
					html += '<td><input name="rule_content[]" type="text" class="form-control span3" value="" /></td>';
					html += '<td> <input  name="koi_rule_id[]" type="hidden" value="" />&nbsp;<a href="javascript:;" onclick="removeRuleItem(this)" ><i class="glyphicon glyphicon-remove"></i> 删除</a></td>';
					html += "</tr>";
					$("#koi_rule_items").append(html);
				}
				function removeRuleItem(obj) {
					$(obj).parent().parent().remove();
				}
			</script>
